﻿using Harvest.API.Attributes;

namespace Harvest.API.Model
{

    /// <summary>
    /// 
    /// </summary>
    [SerializationInfo("contact")]
    public class Contact
    {

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<id type="integer">19574</id>]]>
        /// </example>
        [SerializationInfo("id", "integer")]
        public int? Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<client-id type="integer">135194</client-id>]]>
        /// </example>
        [SerializationInfo("client-id", "integer")]
        public int? ClientId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<email>thommy.mewes@conplement.de</email>]]>
        /// </example>
        [SerializationInfo("email")]
        public string Email { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[ <title nil="true"></title>]]>
        /// </example>
        [SerializationInfo("title", IsNullable = true)]
        public string Title { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<first-name>Thommy</first-name>]]>
        /// </example>
        [SerializationInfo("first-name")]
        public string FirstName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<last-name>Mewes</last-name>]]>
        /// </example>
        [SerializationInfo("last-name")]
        public string LastName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<phone-office></phone-office>]]>
        /// </example>
        [SerializationInfo("phone-office")]
        public string PhoneOffice { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<phone-mobile></phone-mobile>]]>
        /// </example>
        [SerializationInfo("phone-mobile")]
        public string PhoneMobile { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <example>
        /// <![CDATA[<fax></fax>]]>
        /// </example>
        [SerializationInfo("fax")]
        public string Fax { get; set; }

    }
}
